//
//  DCEvaluateFirstViewController.m
//  JiuyaoMotorcade
//
//  Created by 大橙子 on 2018/12/3.
//  Copyright © 2018 Tomous. All rights reserved.
//

#import "DCEvaluateFirstController.h"
#import "DCEvaluateView.h"
#import "DCEvaluateModel.h"
@interface DCEvaluateFirstController ()
@property (nonatomic,strong) NSArray *dataSource;
@end

@implementation DCEvaluateFirstController
//
//-(NSArray *)dataSource {
//    if (!_dataSource) {
//        _dataSource = [NSArray new];
//    }
//    return _dataSource;
//}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSArray *array = @[
                       @{
                           @"time":@"2018-8-14",
                           @"name":@"张三",
                           @"content":@"满载满载满载满载满载满载满载",
                           @"type":@"好评"
                           },
                       @{
                           @"time":@"2018-8-14",
                           @"name":@"李四",
                           @"content":@"满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载满载",
                           @"type":@"差评"
                           },
                       @{
                           @"time":@"2018-8-14",
                           @"name":@"张三",
                           @"content":@"满载满载满载满载满载满载满载",
                           @"type":@"中评"
                           },
                       @{
                           @"time":@"2018-8-14",
                           @"name":@"张三",
                           @"content":@"满载满载满载满载满载满载满载",
                           @"type":@"好评"
                           },
                       @{
                           @"time":@"2018-8-14",
                           @"name":@"张三",
                           @"content":@"满载满载满载满载满载满载满载",
                           @"type":@"好评"
                           },@{
                           @"time":@"2018-8-14",
                           @"name":@"张三",
                           @"content":@"满载满载满载满载满载满载满载",
                           @"type":@"好评"
                           },
                       @{
                           @"time":@"2018-8-14",
                           @"name":@"张三",
                           @"content":@"满载满载满载满载满载满载满载",
                           @"type":@"好评"
                           },
                       ];
    self.dataSource = [NSArray array];
    self.dataSource = [DCEvaluateModel mj_objectArrayWithKeyValuesArray:array];
    
    DCEvaluateView *evaluateView = [DCEvaluateView creatTableViewWithFrame:CGRectMake(0, 0, self.view.width, ScreenHeight - navHeight - statusHeight-50) dataSource:self.dataSource];
    [self.view addSubview:evaluateView];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
